package cn.wancat.pattern.behavioral.chainofresponsibility;

public class Test {
    public static void main(String[] args) {
        ArticleHandler articleHandler = new ArticleHandler();
        VideoHandler videoHandler = new VideoHandler();
        articleHandler.setHandler(videoHandler);

        Course course = new Course();
        course.setName("go lang programmer");
        course.setArticle("这是一篇手记");
        articleHandler.apply(course);
    }
}
